package com.guodu.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "Material_ruku")
public class MaterialRuku implements Serializable {
	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	
	@Id
	@Column(name = "rk_id", unique = true, nullable = false, length = 20)
	private String rkId;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "rk_time",nullable = false)
	private Date rkTime;
	
	@Column(name = "UNITS_ID", nullable = false, precision = 20)
	private Long unitsId;
	
	@Column(name = "material_code", length = 100)
	private String materialCode;
	
	@Column(name = "material_name",  length = 100,nullable = false)
	private String materialName;
	
	@Column(name = "specifications", length = 1400)
	private String specifications;
	
	@Column(name = "texture",  length = 200)
	private String texture;
	
	@Column(name = "drawingnum",  length = 200)
	private String drawingnum;
	
	@Column(name = "measurement",  length = 20,nullable = false)
	private String measurement;
	
	@Column(name = "ruku_count",  precision = 20,scale = 3,nullable = false)
	private BigDecimal rukuCount;
	
	@Column(name = "price",  precision = 20,scale = 2,nullable = false)
	private BigDecimal price;
	
	@Column(name = "money",  precision = 20,scale = 2,nullable = false)
	private BigDecimal money;
	
	@Column(name = "supplier",  length = 200)
	private String supplier;
	
	@Column(name = "buyer", length = 20)
	private String buyer;
	
	@Column(name = "remarks",length = 200)
	private String remarks;
	
	@Column(name = "reserved1", length = 20)
	private String reserved1;
	
	@Column(name = "reserved2", length = 20)
	private String reserved2;
	
	@Column(name = "reserved3", length = 20)
	private String reserved3;
	
	@Column(name = "reserved4", length = 20)
	private String reserved4;
	
	@Column(name = "reserved5", length = 20)
	private String reserved5;

	@Column(name = "status", precision = 2 ,nullable = false)
	private Long status;

	@Column(name = "create_people", precision = 20 ,nullable = false)
	private Long createPeople;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	private Date createTime;

	// Constructors

	/** default constructor */
	public MaterialRuku() {
	}



	// Property accessors
	
	public String getRkId() {
		return this.rkId;
	}

	public void setRkId(String rkId) {
		this.rkId = rkId;
	}

	
	public String getMaterialCode() {
		return this.materialCode;
	}

	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	
	public String getMaterialName() {
		return this.materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	
	public String getSpecifications() {
		return this.specifications;
	}

	public void setSpecifications(String specifications) {
		this.specifications = specifications;
	}


	public String getTexture() {
		return this.texture;
	}

	public void setTexture(String texture) {
		this.texture = texture;
	}

	
	public String getDrawingnum() {
		return this.drawingnum;
	}

	public void setDrawingnum(String drawingnum) {
		this.drawingnum = drawingnum;
	}

	
	public String getMeasurement() {
		return this.measurement;
	}

	public void setMeasurement(String measurement) {
		this.measurement = measurement;
	}

	

	
	public BigDecimal getRukuCount() {
		return rukuCount;
	}



	public void setRukuCount(BigDecimal rukuCount) {
		this.rukuCount = rukuCount;
	}



	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	
	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	
	public Date getRkTime() {
		return this.rkTime;
	}

	public void setRkTime(Date rkTime) {
		this.rkTime = rkTime;
	}

	
	public String getSupplier() {
		return this.supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}


	public String getBuyer() {
		return this.buyer;
	}

	public void setBuyer(String buyer) {
		this.buyer = buyer;
	}

	
	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	
	public Long getCreatePeople() {
		return this.createPeople;
	}

	public void setCreatePeople(Long createPeople) {
		this.createPeople = createPeople;
	}

	
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	
	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	
	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	
	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	
	public String getReserved4() {
		return this.reserved4;
	}

	public void setReserved4(String reserved4) {
		this.reserved4 = reserved4;
	}

	
	public String getReserved5() {
		return this.reserved5;
	}

	public void setReserved5(String reserved5) {
		this.reserved5 = reserved5;
	}

	
	public Long getUnitsId() {
		return unitsId;
	}

	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}



	public Long getStatus() {
		return this.status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

}
